home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / util / comm / arapp144.sit / Practical 14400FXSA-V.32 only < prev    next >
Encoding:
Text File  |  1992-08-06  |  4.3 KB  |  226 lines

  1. ! "Practical PM14400FXSA-V.32 only - 8/6/92"
  2. !  by SBM  CompuServe ID: 72711,2044 (daily) or 74435,357 (occasional)
  3. !          GENIE: S.MEUSE2 (occasional)
  4. !          AppleLink: CYTYC.DEV (daily)
  5. !          Internet: 72711.2044@compuserve.com
  6. !
  7. ! This is a defeatured version of my V.32bis script for the Practical Peripherals
  8. ! PM14400FXSA modem.  It is needed for originating calls only, when phone noise
  9. ! makes a good V.32bis connection impossible.  If ARA can't connect, and the
  10. ! LCD is displaying "Xmit Train"- time to use this script.
  11. !
  12. ! Non-commercial distribution of non-beta versions is encouraged provided
  13. ! the files are unmodified and all files are included in the distribution.
  14. ! Please report any problems.  Thanks!
  15. !
  16. ! revision history
  17. ! 1.0B1- 7/7/92-
  18. !    Initial beta release. Uploaded to CompuServe's PPIFORUM only.
  19. ! 1.0B5- 7/28/92-
  20. !    local testing only.  Wait 90 seconds after dial for carrier.
  21. !    (skipped some release numbers to get this file in phase with the others)
  22. ! 1.0- 8/6/92-
  23. !    Initial general release.  Uploaded to PPIFORUM, MACCOM, GEnie, & the PPI BBS.
  24. !
  25. @ORIGINATE
  26. @ANSWER
  27. !
  28. @LABEL 1
  29. serreset 9600, 0, 8, 1
  30. !
  31. ! first recall the factory configuration
  32. !
  33. matchclr
  34. settries 0
  35. matchstr 1 3 "OK\13\10"
  36. @LABEL 2
  37. write "AT&F\13"
  38. matchread 30
  39. inctries
  40. iftries 2 59
  41. jump 2
  42. !
  43. ! then echo off, DTR off, disable local flow control
  44. @LABEL 3
  45. matchclr
  46. matchstr 1 4 "OK\13\10"
  47. write "ATE0&C1&D0&K0\13"
  48. matchread 30
  49. jump 59
  50. !
  51. ! then turn off error correction, turn off autospeed buffering,
  52. ! disable auto-retrain, disable V.32bis & auto-retrain
  53. ! allow 90 seconds for a successful connection (up from 50).
  54. !
  55. @LABEL 4
  56. matchclr
  57. matchstr 1 5 "OK\13\10"
  58. matchstr 2 5 "ERROR\13\10"
  59. write "AT&Q0&B0S110=0S7=90\13"
  60. matchread 30
  61. !
  62. ! If speaker on flag is true, jump to label 8.  Else turn off the speaker
  63. @LABEL 5
  64. ifstr 2 8 "1"
  65. matchclr
  66. matchstr 1 8 "OK\13\10"
  67. write "ATM0\13"
  68. matchread 30
  69. jump 59
  70. !
  71. ! The modem is ready.  So enable answering, or originate a call
  72. !
  73. @LABEL 8
  74. ifANSWER 30
  75. note "Dialing ^1" 3
  76. write "ATS0=0DT^1\13"
  77. !
  78. @LABEL 9
  79. matchclr
  80. matchstr  1 11 "CONNECT 1200\13\10"
  81. matchstr  2 12 "CONNECT 2400\13\10"
  82. matchstr  3 13 "CONNECT 4800\13\10"
  83. matchstr  4 14 "CONNECT 7200\13\10"
  84. matchstr  5 15 "CONNECT 9600\13\10"
  85. matchstr  9 50 "NO CARRIER\13\10"
  86. matchstr 10 50 "ERROR\13\10"
  87. matchstr 11 52 "NO DIALTONE\13\10"
  88. matchstr 12 53 "BUSY\13\10"
  89. matchstr 13 54 "NO ANSWER\13\10"
  90. matchread 999
  91. jump 59
  92. !
  93. @LABEL 11
  94. note "Communicating at 1200 bps." 2
  95. serreset 1200, 0, 8, 1
  96. jump 19
  97. !
  98. @LABEL 12
  99. note "Communicating at 2400 bps." 2
  100. serreset 2400, 0, 8, 1
  101. jump 19
  102. !
  103. @LABEL 13
  104. note "Communicating at 4800 bps." 2
  105. serreset 4800, 0, 8, 1
  106. jump 19
  107. !
  108. @LABEL 14
  109. note "Communicating at 7200 bps." 2
  110. serreset 7200, 0, 8, 1
  111. jump 19
  112. !
  113. @LABEL 15
  114. note "Communicating at 9600 bps." 2
  115. serreset 9600, 0, 8, 1
  116. jump 19
  117. !
  118. !
  119. !
  120. @LABEL 19
  121. ifANSWER 20
  122. pause 30
  123. @LABEL 20
  124. exit 0
  125. !
  126. ! @ANSWER
  127. ! Set up modem to answer
  128. @LABEL 30
  129. matchclr
  130. matchstr 1 31 "OK\13\10"
  131. write "ATS0=1\13"
  132. matchread 30
  133. jump 59
  134. !
  135. @LABEL 31
  136. matchclr
  137. matchstr  1 32 "RING\13\10"
  138. matchstr  2 11 "CONNECT 1200\13\10"
  139. matchstr  3 12 "CONNECT 2400\13\10"
  140. matchstr  4 13 "CONNECT 4800\13\10"
  141. matchstr  5 14 "CONNECT 7200\13\10"
  142. matchstr  6 15 "CONNECT 9600\13\10"
  143. matchstr 10 50 "NO CARRIER\13\10"
  144. matchstr 11 50 "ERROR\13\10"
  145. matchstr 12 52 "NO DIALTONE\13\10"
  146. matchstr 13 53 "BUSY\13\10"
  147. matchstr 14 54 "NO ANSWER\13\10"
  148. matchread 700
  149. jump 31
  150. !
  151. @LABEL 32
  152. userhook 1
  153. note "Answering phoneâ•”" 2
  154. jump 31
  155. !
  156. ! 50: error messages
  157. !
  158. @LABEL 50
  159. exit -6021
  160. !
  161. @LABEL 52
  162. exit -6020
  163. !
  164. @LABEL 53
  165. exit -6022
  166. !
  167. @LABEL 54
  168. exit -6023
  169. !
  170. @LABEL 59
  171. exit -6019
  172. !
  173. ! hang up the modem
  174. !
  175. @HANGUP
  176. @LABEL 60
  177. settries 0
  178. @LABEL 61
  179. matchclr
  180. matchstr 1 64 "OK\13\10"
  181. matchstr 2 63 "NO CARRIER\13\10"
  182. matchstr 3 64 "ERROR\13\10"
  183. write "ATH0\13"
  184. matchread 15
  185. inctries
  186. iftries 3 64
  187. ! no response, try escape sequence
  188. matchclr
  189. matchstr 1 62 "OK\13\10"
  190. matchstr 2 63 "NO CARRIER\13\10"
  191. write "+++"
  192. matchread 18
  193. ! No response from modem, try reset command
  194. write "ATZ\13"
  195. pause 30
  196. jump 61
  197. !
  198. @LABEL 62
  199. matchclr
  200. matchstr 1 64 "OK\13\10"
  201. matchstr 2 63 "NO CARRIER\13\10"
  202. write "ATH0\13"
  203. matchread 50
  204. jump 61
  205. !
  206. @LABEL 63
  207. pause 45
  208. flush
  209. !
  210. ! recall the factory settings
  211. !
  212. @LABEL 64
  213. matchclr
  214. matchstr 1 65 "OK\13\10"
  215. write "AT&F\13"
  216. matchread 30
  217. !
  218. @LABEL 65
  219. matchclr
  220. matchstr 1 66 "OK\13\10"
  221. write "ATS0=0\13"
  222. matchread 30
  223. !
  224. @LABEL 66
  225. exit 0
  226.